﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleTaskManager.Domain.Abstract;
using SimpleTaskManager.Domain.Entities;

namespace SimpleTaskManager.Domain.Concrete
{
    /// <summary>
    /// A repository containing the reports and their details
    /// </summary>
    public class EFReportRepository : IReportRepository
    {
        private EFDbContext context = new EFDbContext();

        /// <summary>
        /// Gets the collection of the report headers (metadata)
        /// </summary>
        public IQueryable<ReportHeader> ReportHeaders
        {
            get { return context.ReportHeaders; }
        }

        /// <summary>
        /// Gets the collection of the report details (binary data)
        /// </summary>
        public IQueryable<ReportDetail> ReportDetails
        {
            get { return context.ReportDetails; }
        }
    }
}
